package com.example.demo.util;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class UsedByNew {
    static {
       log.info("static code was run");
    }
    {
        log.info("code was run");
    }

    int version = 8;

    public void sayHello(){
        log.info("UsedByNew: hello, version {}, class loader: {}", version, getClass().getClassLoader());
    }
}
